#pragma once
#include "afxwin.h"
#include "PicLocalDlg.h"
#include "cv.h"
#include "cxcore.h"
#include "highgui.h"


class CPicture :
	public CStatic
{
public:
	CPicture(void);
	~CPicture(void);

private:
	CPicLocalDlg *picLocalDlg;
	bool m_bButtonDown;
	enum PicCtrl{pattern1,pattern2};

public:
	IplImage* m_imgShow;
	IplImage* m_scaleImage;
	double wScale;
	double hScale;

public:
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnMouseHover(UINT nFlags, CPoint point);
	afx_msg void OnMouseLeave();
	afx_msg void OnLButtonDown( UINT, CPoint );
	afx_msg void OnLButtonUp( UINT, CPoint );

	DECLARE_MESSAGE_MAP()
};
